package com.eqs.enterprisequestionnaire.controller;

import com.eqs.enterprisequestionnaire.result.R;
import com.eqs.enterprisequestionnaire.service.SortQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/sortQuestion")
public class SortQuestionController {
    @Autowired
    private SortQuestionService sortQuestionService;

    @GetMapping("/getOptionOrder/{optionId}")
    public R<Integer> getOptionOrder(Integer optionId) {
        Integer order = sortQuestionService.getOptionOrder(optionId);
        return R.success(order);
    }
}
